package com.yinian.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data

//@NoArgsConstructor
//@AllArgsConstructor
@ApiModel(description = "用户登录返回的数据格式")
@Entity
@Table(name = "user")
public class UserCommunityVO implements Serializable {


    @ApiModelProperty("主键值")
    @Id
    private Long id;

    @ApiModelProperty("用户名")
    @Column(name = "username")
    private String userName;
    @ApiModelProperty("头像")
    @Column(name ="avatar")
    private String avatar;

    public UserCommunityVO() {
    }
}
